//
//  FirstCollectionViewCell.m
//  WWXELuShang
//
//  Created by 王涛 on 15/12/17.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "FirstCollectionViewCell.h"

@implementation FirstCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat width = self.frame.size.width;
        CGFloat height = self.frame.size.height;
        self.imageView = [[UIImageView alloc] initWithFrame:(CGRectMake(width / 3, height / 6, width / 3, height / 2))];
        [self addSubview:self.imageView];
        self.backgroundColor = [UIColor whiteColor];
        self.layer.masksToBounds = YES;
        self.layer.borderColor = [[UIColor lightGrayColor]CGColor];
        self.layer.borderWidth = 0.5;
        
        self.nameLabel = [[UILabel alloc] initWithFrame:(CGRectMake(0, height * 2 / 3, width, height / 3))];
        self.nameLabel.font = [UIFont systemFontOfSize:13];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        self.nameLabel.textColor = [UIColor lightGrayColor];
        [self addSubview:self.nameLabel];
    }
    return self;
}


@end
